package th.retrofit.lib;

import java.util.LinkedList;

public class QueueTest {

    public static void main(String[] args) {
        LinkedList<String> deque = new LinkedList<>();
        deque.offerLast("A");
        deque.offerLast("B");
        deque.offerFirst("C");
        for (String s : deque) {
            System.out.println(s);
        }
        System.out.println(deque.get(0));
    }

}